import request from '@/utils/request'

export function listCompany() {
  return request({
    url: '/company/list',
    method: 'get',
  })
}

export function listCompanyPage(query) {
  return request({
    url: '/company/listPage',
    method: 'post',
    data: query
  })
}

export function deleteCompany(id) {
  return request({
    url: '/company/delete',
    method: 'get',
    params: {
      id
    }
  })
}

export function createCompany(temp) {
  return request({
    url: '/company/create',
    method: 'post',
    data: temp
  })
}

export function updateCompany(temp) {
  return request({
    url: '/company/update',
    method: 'post',
    data: temp
  })
}
